﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Default index ServiceStack.WebHost.IntegrationTests page  
    </div>
    </form>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {

            var dt = new Date();
            var etime = dt.getTime();

            var jdata = {
                "AppToken": "TEST123",
                "OrderId": 1,
                "GeoCode": {
                    "t": etime,
                    "latitude": 32.81434,
                    "longitude": -80.3432221
                }
            };

            $.ajax({
                url: "geoinfo",
                type: "POST",
                contentType: "application/json",
                accept: "application/json",
                dataType: "json",
                data: JSON.stringify(jdata),
                success: function (data) {
                    //alert(data.Result);
                }
            });

            //            $.post("geoinfo", JSON.stringify(jdata),
            //                function (data) {
            //                    alert(data.Result);
            //                },
            //                "json");

        });
    </script>
</body>
</html>
